module.exports = function (text, type = 0) {
  switch (type) {
    case -1:
      /* infomation */
      console.log('\033[45;30m INFO \033[0m\033[40;35m ' + text + '\033[0m');
      break;
    case 0:
      /* success */
      console.log('\033[42;30m SUCCESS \033[0m\033[40;32m ' + text + '\033[0m');
      break;
    case 1:
      /* warning */
      console.log('\033[43;30m WARN \033[0m\033[40;33m ' + text + '\033[0m');
      break;
    case 2:
      /* error */
      console.log('\033[41;30m ERROR \033[0m\033[40;31m ' + text + '\033[0m');
      break;
  }
}
